package com.lyxy.test;

public class Bank {
    private int out;

    public void getMoney(int out) throws BankException{
        if(out % 100 == 0){
            System.out.println(out);
        }else {
            throw new BankException("错误，取钱只能是整数");
        }
    }
}